from django.db import models
class DemoTable(models.Model):
    code_id = models.AutoField(primary_key=True)
    account = models.CharField(max_length=255, blank=True, null=True)
    total_account_amount = models.FloatField(blank=True, null=True)
    code = models.CharField(max_length=255, blank=True, null=True)
    code_name = models.CharField(max_length=255, blank=True, null=True)
    buy_date = models.DateField(blank=True, null=True)
    first_day_rate = models.CharField(max_length=255, blank=True, null=True)
    first_day_rate_flag = models.IntegerField()
    my_price = models.FloatField(blank=True, null=True)
    num = models.IntegerField(blank=True, null=True)
    hold_money = models.IntegerField(blank=True, null=True)
    close_price = models.CharField(max_length=255, blank=True, null=True)
    my_rate = models.FloatField(blank=True, null=True)
    my_cash = models.IntegerField(blank=True, null=True)
    max_price = models.CharField(max_length=255, blank=True, null=True)
    max_rate = models.FloatField(blank=True, null=True)
    min_price = models.CharField(max_length=255, blank=True, null=True)
    min_rate = models.FloatField(blank=True, null=True)
    die_max_rate = models.CharField(max_length=20, blank=True, null=True)
    die_max_price = models.CharField(max_length=255, blank=True, null=True)
    die_min_rate = models.CharField(max_length=20, blank=True, null=True)
    die_min_price = models.CharField(max_length=255, blank=True, null=True)
    flag = models.IntegerField()
    level = models.CharField(max_length=255, blank=True, null=True)
    is_die = models.IntegerField()
    die_date = models.DateField(blank=True, null=True)
    interval_date = models.IntegerField(blank=True, null=True)
    update_date = models.DateTimeField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'my_cashs_backT'
